| Fully Qualified Name: | Laminas\Log\Writer\FingersCrossed |
| Extends: | AbstractWriter |
Buffers all events until the strategy determines to flush them.
Constructor
| Parameter Name | Type | Description |
|---|---|---|
| $writer | \WriterInterface|string|array|\Traversable | Wrapped |
| $filterOrPriority | \FilterInterface|int | Filter |
| $bufferSize | int | Maximum |
Returns:
Add a filter specific to this writer.
| Parameter Name | Type | Description |
|---|---|---|
| $filter | int|string|\Filter\FilterInterface | |
| $options | array|null |
Returns: \AbstractWriter
Get filter instance
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | |
| $options | array|null |
Returns: \Filter\FilterInterface
Get formatter instance
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | |
| $options | array|null |
Returns: \Formatter\FormatterInterface
Get filter plugin manager
Returns: \LogFilterPluginManager
Get formatter plugin manager
Returns: \LogFormatterPluginManager
Get writer plugin manager
Returns: \WriterPluginManager
Resets the state of the handler.
Stops forwarding records to the wrapped writer
Returns:
Set convert write errors to exception flag
| Parameter Name | Type | Description |
|---|---|---|
| $convertErrors | bool |
Returns:
Set filter plugin manager
| Parameter Name | Type | Description |
|---|---|---|
| $plugins | string|\LogFilterPluginManager |
Returns: self
Stub in accordance to parent method signature.
Fomatters must be set on the wrapped writer.
| Parameter Name | Type | Description |
|---|---|---|
| $formatter | string|\FormatterInterface | |
| $options | array|null | (unused) |
Returns: \WriterInterface
Set formatter plugin manager
| Parameter Name | Type | Description |
|---|---|---|
| $plugins | string|\LogFormatterPluginManager |
Returns: self
Set a new writer
| Parameter Name | Type | Description |
|---|---|---|
| $writer | string|\WriterInterface | |
| $options | array|null |
Returns: self
Set writer plugin manager
| Parameter Name | Type | Description |
|---|---|---|
| $plugins | string|\WriterPluginManager |
Returns: \FingersCrossed
Record shutdown
Returns: void
Log a message to this writer.
| Parameter Name | Type | Description |
|---|---|---|
| $event | array | log |
Returns: void
Get writer instance
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | |
| $options | array|null |
Returns: \WriterInterface